using System;
using System.Collections.Generic;
using System.Diagnostics;
namespace MAP
{
    [DebuggerDisplay("LinkID={LinkID}, LinkFrom={LinkFrom},LinkTo={LinkTo}")]
    public class fMap
    {
        public string SourceTable;
        public string TargetTable;
        public string SourceColumn;
        public string TargetColumn;
        public string DefaultValue;
        public string sourcePath;
        public string targetPath;
        public string LinkFrom;
        public string  LinkTo;
        public string FunctoidName = "";
        public bool isTableLoop = false;
        public string LinkID = "";
        public bool Mapped = false;

        private List<string> Name = new List<string>();
        public string getFunctoidName()
        {
            char[] sep = new char[] { ',' };
            foreach (string str in FunctoidName.Split(sep,StringSplitOptions.RemoveEmptyEntries)) 
            {
                if (!Name.Contains(str))
                {
                    Name.Add(str);
                }
            }
            string strfinal="";
            foreach (string s in Name)
            {
                strfinal += s+",";
            }

            return strfinal;
        }

        
    }    
}
